
terraform {
  required_version = "~> 0.12"
  backend "oss" {
    bucket              = "deeproute-terraform-resources"
    key                 = "prod/services/dns-records"
    tablestore_endpoint = "https://terraform-status.cn-shenzhen.ots.aliyuncs.com"
    tablestore_table    = "terraform_statelock_table_v2"
    region              = "cn-shenzhen"
  }
}

variable "deeproute_dns_api_endpoint" {
  type = string
  default = "http://k8s-dns-admin.deeproute.ai"
}

variable "deeproute_dns_api_auth_token" { type = string }

provider "alicloud" {
  region  = local.region
  version = "1.199"
}

provider "deeproute" {
  dns_api_endpoint   = var.deeproute_dns_api_endpoint
  dns_api_auth_token = var.deeproute_dns_api_auth_token
}

locals {
  region  = "cn-shenzhen"
  env     = "prod"
  name    = "ack-cluster"
  billing = "team-cloud"
  team    = "cloud"
}
